# 编写函数计算一个或不特定多个数的乘积

def multipal(*args):
    num = 1
    for x in args:
        num *= x
    return num

res = multipal(1, 2, 3)
print(f"res: {res}")

res = multipal(1)
print(f"res: {res}")

res = multipal(1, 5, 3)
print(f"res: {res}")

